package com.clear.honghefinance.biz.modules.currency.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 创建币别DTO
 */
@Getter
@Setter
public class CreateCurrencyConfigDTO implements Serializable {

    @ApiModelProperty(value = "编码[RMB，USD]")
    @NotBlank(message = "编码不能为空")
    private String code;

    @ApiModelProperty(value = "币别名称[人民币，美元]")
    @NotBlank(message = "币别名称不能为空")
    private String name;

    @ApiModelProperty(value = "汇率")
    @NotNull(message = "汇率不能为空")
    private BigDecimal exchangeRate;
}
